package br.com.mmm.javacenter.framework.menu;

import java.util.List;

import javax.persistence.Entity;
import javax.persistence.OneToMany;

import br.com.mmm.javacenter.framework.entity.EntidadeBase;
import br.com.mmm.javacenter.framework.security.Role;

@Entity
public class Menu extends EntidadeBase<Menu>{
	private String nome;
	private String path;
	private String url;
	@OneToMany
	private List<Menu> items;
	@OneToMany
	private List<Role> roles;
	
	public String getNome() {
		return nome;
	}
	public void setNome(String nome) {
		this.nome = nome;
	}
	public String getPath() {
		return path;
	}
	public void setPath(String path) {
		this.path = path;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public List<Menu> getItems() {
		return items;
	}
	public void setItems(List<Menu> items) {
		this.items = items;
	}
	public List<Role> getRoles() {
		return roles;
	}
	public void setRoles(List<Role> roles) {
		this.roles = roles;
	}
	
	
	
}
